Skip to content

Conversation

chargome
Copy link
Member

@chargome chargome commented Aug 8, 2025

Makes use of the runAfterProductionCompile hook to handle sourcemap upload logic.

When activated by setting useRunAfterProductionCompileHook: true in withSentryConfig we apply the following logic:

  • Webpack: we disable sourcemap uploads and release creation in the webpack plugin and instead handle these in `runAfterProductionCompile. We do keep the debugId injection in the plugin though.
  • Turbopack: as there is no bundler plugin for Turbopack we handle the entire bundler plugin cycle in the hook (release, inject, upload, delete)

closes https://linear.app/getsentry/issue/JS-267/slow-build-times-and-webpack-serialization-performance-warnings-when

Still needs getsentry/sentry-javascript-bundler-plugins#785 and getsentry/sentry-javascript-bundler-plugins#784 to be released

@chargome chargome self-assigned this Aug 8, 2025
Copy link

linear bot commented Aug 8, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant